<?php
/*
	[Phpup.Net!] (C)2009-2011 Phpup.net.
	This is NOT a freeware, use is subject to license terms

	$Id: session.class.php 2010-08-24 10:42 $
*/

if(!defined('IN_BIDCMS')) {
	exit('Access Denied');
}

$app['host']=str_replace('http://','',SITE_ROOT);
$app['scheme']='http';
$app['settings']['imgHosts']['hbimg']=str_replace('http://','',STATIC_ROOT);
$app['settings']['hbfile']['hbfile']=str_replace('http://','',STATIC_ROOT);;
$app['settings']['minImageWidth']=16;
$app['timestamp']=time();
/*$pcate=array(array('all'=>'全部','home'=>'家居','travel_places'=>'旅行','food_drink'=>'吃喝','pets'=>'宠物','people'=>'美容','film_music_books'=>'电影/音乐/书籍','photography'=>'摄影','desire'=>'人文','architecture'=>'建筑','tips'=>'标签','funny'=>'趣图','art'=>'艺术','other'=>'其它'),array('illustration'=>'插图','design'=>'设计','web_app_icon'=>'素材'),array('taomm'=>'淘女郎潮搭','modeling_hair'=>'发型设计','wedding_events'=>'婚礼','apparel'=>'服装搭配','kids'=>'儿童用品','diy_crafts'=>'DIY创意'),array('beauty'=>'美图','cars_motorcycles'=>'汽车','data_presentation'=>'数据图表','digital'=>'数据','men'=>'男人装','sports'=>'运城'),array('videos'=>'视频','web_captures'=>'网页截图'));
if(!empty($pcate))
{
	foreach($pcate as $k=>$v)
	{
		foreach($v as $key=>$val)
		{
			//$app['settings']['categories'][$key]=array('id'=>$key,'name'=>$val,'group'=>$k,'nav_link'=>$key);
			$categories[$key]=$val;
		}
	}
}
*/
$cate=array('all'=>'全部','home'=>'家居','travel_places'=>'旅行','food_drink'=>'吃喝','pets'=>'宠物','people'=>'美容','film_music_books'=>'电影/音乐/书籍','photography'=>'摄影','desire'=>'人文','architecture'=>'建筑','tips'=>'标签','funny'=>'趣图','art'=>'艺术','other'=>'其它','illustration'=>'插图','design'=>'设计','web_app_icon'=>'素材','taomm'=>'淘女郎潮搭','modeling_hair'=>'发型设计','wedding_events'=>'婚礼','apparel'=>'服装搭配','kids'=>'儿童用品','diy_crafts'=>'DIY创意','beauty'=>'美图','cars_motorcycles'=>'汽车','data_presentation'=>'数据图表','digital'=>'数据','men'=>'男人装','sports'=>'运城','videos'=>'视频','web_captures'=>'网页截图',);
$app['settings']['categories']=array(0=>array('id'=>'all','name'=>'全部','group'=>0,'nav_link'=>'all',),1=>array('id'=>'home','name'=>'家居','group'=>0,'nav_link'=>'home',),2=>array('id'=>'travel_places','name'=>'旅行','group'=>0,'nav_link'=>'travel_places',),3=>array('id'=>'food_drink','name'=>'吃喝','group'=>0,'nav_link'=>'food_drink',),4=>array('id'=>'pets','name'=>'宠物','group'=>0,'nav_link'=>'pets',),5=>array('id'=>'people','name'=>'美容','group'=>0,'nav_link'=>'people',),6=>array('id'=>'film_music_books','name'=>'电影/音乐/书籍','group'=>0,'nav_link'=>'film_music_books',),7=>array('id'=>'photography','name'=>'摄影','group'=>0,'nav_link'=>'photography',),8=>array('id'=>'desire','name'=>'人文','group'=>0,'nav_link'=>'desire',),9=>array('id'=>'architecture','name'=>'建筑','group'=>0,'nav_link'=>'architecture',),10=>array('id'=>'tips','name'=>'标签','group'=>4,'nav_link'=>'tips',),11=>array('id'=>'funny','name'=>'趣图','group'=>4,'nav_link'=>'funny',),12=>array('id'=>'art','name'=>'艺术','group'=>4,'nav_link'=>'art',),13=>array('id'=>'other','name'=>'其它','group'=>4,'nav_link'=>'other',),14=>array('id'=>'illustration','name'=>'插图','group'=>1,'nav_link'=>'illustration',),15=>array('id'=>'design','name'=>'设计','group'=>1,'nav_link'=>'design',),16=>array('id'=>'web_app_icon','name'=>'素材','group'=>1,'nav_link'=>'web_app_icon',),17=>array('id'=>'taomm','name'=>'淘女郎潮搭','group'=>2,'nav_link'=>'taomm',),18=>array('id'=>'modeling_hair','name'=>'发型设计','group'=>2,'nav_link'=>'modeling_hair',),19=>array('id'=>'wedding_events','name'=>'婚礼','group'=>2,'nav_link'=>'wedding_events',),20=>array('id'=>'apparel','name'=>'服装搭配','group'=>2,'nav_link'=>'apparel',),21=>array('id'=>'kids','name'=>'儿童用品','group'=>2,'nav_link'=>'kids',),22=>array('id'=>'diy_crafts','name'=>'DIY创意','group'=>2,'nav_link'=>'diy_crafts',),23=>array('id'=>'beauty','name'=>'美图','group'=>3,'nav_link'=>'beauty',),24=>array('id'=>'cars_motorcycles','name'=>'汽车','group'=>3,'nav_link'=>'cars_motorcycles',),25=>array('id'=>'data_presentation','name'=>'数据图表','group'=>3,'nav_link'=>'data_presentation',),26=>array('id'=>'digital','name'=>'数据','group'=>3,'nav_link'=>'digital',),27=>array('id'=>'men','name'=>'男人装','group'=>3,'nav_link'=>'men',),28=>array('id'=>'sports','name'=>'运城','group'=>3,'nav_link'=>'sports',),29=>array('id'=>'videos','name'=>'视频','group'=>4,'nav_link'=>'videos',),30=>array('id'=>'web_captures','name'=>'网页截图','group'=>4,'nav_link'=>'web_captures',),);
$app['settings']['fav_categories']=array("beauty", "home", "food_drink", "photography", "apparel", "wedding_events", "men", "travel_places", "illustration", "design", "modeling_hair", "people", "tips");
$app['settings']['channels']=array(array("id"=>"videos", "name"=>"视频", "group"=>5),array("id"=>"web_captures", "name"=>"网页截图", "group"=>5),array("id"=>"taomm", "name"=>"淘女郎潮搭", "group"=>5));
$app["req"]=array('shopping'=>'null','sid'=>'okFU9Rmelqyuj8F5PjWxkyUa.aUqp4VTK0DmwTsoSm1Cpf4Hsa7aeFtgGrx9dwuuYKKk');

//My Info
if($session->get('uid')>0)
{
	$app['req']['user']=getuser($session->get('uid'),1,1,1,1,1);
	$app['page']['user_info']=!empty($app['req']['user']['user_id'])?array('follower_count'=>$app['req']['user']['like_count'],'board_count'=>$app['req']['user']['board_count'],'pin_count'=>$app['req']['user']['pin_count']):array();
}
$app['page']['stores']=array("tmall"=>array("id"=>"tmall", "name"=>"天猫商城", "url_rule"=>array()), "taobao"=>array("id"=>"taobao", "name"=>"淘宝", "url_rule"=>array()), "nuandao"=>array("id"=>"nuandao", "name"=>"暖岛", "url_rule"=>array()), "1626buy"=>array("id"=>"1626buy", "name"=>"1626潮流精选", "url_rule"=>array()), "xipin"=>array("id"=>"xipin", "name"=>"稀品网", "url_rule"=>array()), "jue"=>array("id"=>"jue", "name"=>"觉", "url_rule"=>array()), "creatife"=>array("id"=>"creatife", "name"=>"创意生活", "url_rule"=>array()), "emoi"=>array("id"=>"emoi", "name"=>"emoi基本生活", "url_rule"=>array()), "shijue"=>array("id"=>"shijue", "name"=>"视觉中国", "url_rule"=>array()), "360buy"=>array("id"=>"360buy", "name"=>"京东商城", "url_rule"=>array()), "dangdang"=>array("id"=>"dangdang", "name"=>"当当网", "url_rule"=>array()), "wowsai"=>array("id"=>"wowsai", "name"=>"哇噻网", "url_rule"=>array()), "zara"=>array("id"=>"zara", "name"=>"zara", "url_rule"=>array()), "crucco"=>array("id"=>"crucco", "name"=>"初刻", "url_rule"=>array()), "apous"=>array("id"=>"apous", "name"=>"百汇馆", "url_rule"=>array()), "magibuy"=>array("id"=>"magibuy", "name"=>"美奇", "url_rule"=>array()), "quwan"=>array("id"=>"quwan", "name"=>"趣玩", "url_rule"=>array()), "shejijia"=>array("id"=>"shejijia", "name"=>"设计家", "url_rule"=>array()), "nop"=>array("id"=>"nop", "name"=>"NOP", "url_rule"=>array()), "doin"=>array("id"=>"doin", "name"=>"Doin", "url_rule"=>array()), "liveport"=>array("id"=>"liveport", "name"=>"优集品", "url_rule"=>array()), "sopool"=>array("id"=>"sopool", "name"=>"素铺", "url_rule"=>array()), "inoutmall"=>array("id"=>"inoutmall", "name"=>"里外优购", "url_rule"=>array()), "unandu"=>array("id"=>"unandu", "name"=>"有男度", "url_rule"=>array()));